package cn.edu.hubu.hubusmartzoohouse.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * 实体类
 * 1.实体类中属性的个数和类型要与对应的数据表保持一致
 * 2.提供所有属性的get和set，添加@Data注解
 * 3.添加无参构造器，添加@NoArgsConstructor
 * 4.添加全参构造器，添加@AllArgsConstructor
 * 5.重写ToString()方法
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class DeviceData {
//    data_id	varchar
//    data_name	varchar
//    data_value	varchar
//    publish_time	timestamp
//    device_type_id	int


    private String dataId;
    private String dataName;
    private String dataValue;
    private Date publishTime; //上报时间
    private int deviceTypeId;

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }
}
